<?php
namespace app\admin\controller;
use app\system\model\Menu;

use think\Controller;
use think\Db;

class Indexbase extends Controller
{
    static $admin_info = [];
    static $menu = [];
    public function __construct($module = '')
    {
        parent::__construct();

        $admin_info = session('admin_info');
        #判断是否登录
        if(!empty($admin_info)){
            #自己的文章
            $this->assign('user',$admin_info);
        }else{
            $this->assign('user','');
        }
    }


}
